package spring.aop.case1;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import spring.UnitTestBase;
import spring.aop.case1.service.JsrService;
import spring.bean.case1.BeanInvoker;

@RunWith(BlockJUnit4ClassRunner.class)
public class TestBeanAnnotion extends UnitTestBase {
    public TestBeanAnnotion() {
        super("classpath:spring-annotation.xml");
    }

    @Test
    public void testMultiBean() {
        BeanInvoker invoker = super.getBean("beanInvoker");
        invoker.say();
    }

    @Test
    public void testSave() {
        JsrService service = super.getBean("jsrService");
        service.save();
    }

}
